﻿using System.ServiceModel;
using System.ServiceModel.Web;

namespace Practical.SharePoint.Base.WebServices
{
    [ServiceContract]
    public interface IADQuery
    {
        [OperationContract]
        [WebInvoke(
             Method = "POST",
             BodyStyle = WebMessageBodyStyle.WrappedRequest,
             RequestFormat = WebMessageFormat.Json,
             ResponseFormat = WebMessageFormat.Json)]
        string QueryActiveDirectory(string adQueryString);

        [OperationContract]
        [WebInvoke(
             Method = "POST",
             BodyStyle = WebMessageBodyStyle.WrappedRequest,
             RequestFormat = WebMessageFormat.Json,
             ResponseFormat = WebMessageFormat.Json)]
        string QueryActiveDirectoryWithProperties(string adQueryString, string propertiesToLoad);
    }
}
